package com.yk.points.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yk.common.annotation.Excel;
import com.yk.common.core.domain.BaseEntity;

/**
 * 金额兑换积分对象 points_amount
 * 
 * @author xufei
 * @date 2025-04-28
 */
@Data
public class PointsAmount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 金额 */
    @Excel(name = "金额")
    private Integer amount;

    /** 对应积分 */
    @Excel(name = "对应积分")
    private Integer points;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("amount", getAmount())
            .append("points", getPoints())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
